<?php
// /api_crawler
class Api_Ranking_WebsiteController extends D_Controller {
	private $_top;
	public $cralwer_obj;
	public $website_obj;
	public $crawl_website_url_obj;
	public $keyword_obj;
	public $data_obj;
	public $page_obj;
	
	function init() {
		set_time_limit(8889889);
		$this->setLayout ('main', '' );

	}
	
	
	function indexAction(){
		$this->noView();
	}
	
	//xem keyword ranking cua 1 website
	function viewkwAction(){
		$this->noLayout();
		$params = $this->_request->getParams();
		$website_ranking_id = $params['id'];
		$wkr = new WebsiteKeywordRanking();
		$this->view->keywords = $wkr->find_by_options(array('website_ranking_id' => $website_ranking_id));
	}
	
	
}

?>